package com.StarStudio.Service;


import com.ruoyi.common.core.Entity.CouponsStock;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;

import java.util.List;

public interface CouponsStockService {

    public List<CouponsStock> findCouponsStockList(CouponsStock couponsStock);

    public long findAllRecordNumber();

    void addCouponsStock(CouponsStock couponsStock);

    void updateCouponsStock(CouponsStock couponsStock);

    List<Long> findUnsoldItemIdsByCouponsId(long id);

    void realDelete(long id);

    void updateDelFlag(long id);

    List<Long> findSoldItemIdsByCouponsId(long id);

    List<Long> findCouponsStockIds(long couponsId);


    List<CouponsStock> findUnsoldItems(long couponsId,boolean flag);

    List<CouponsStock> findSoldItems(long couponsId,boolean flag);

    List<CouponsStock> findByOrder_id(long orderId);
}
